#!/bin/bash

brew install --cask --no-quarantine visual-studio-code
defaults write com.microsoft.VSCode ApplePressAndHoldEnabled -bool false
python3 -c "$(curl -fsSL https://gitee.com/hevey88/install_script/raw/main/vscode_markdown.py)"

code --install-extension formulahendry.code-runner &
code --install-extension donjayamanne.githistory &
code --install-extension mhutchie.git-graph &
code --install-extension asvetliakov.vscode-neovim &
code --install-extension esbenp.prettier-vscode &
code --install-extension albert.TabOut &
code --install-extension wayou.vscode-todo-highlight &
code --install-extension Gruntfuggly.todo-tree &
code --install-extension Codeium.codeium &
code --install-extension Kuroxx.lazygitwrapper &
code --install-extension hbybyyang.gitee-vscode-plugin &
code --install-extension christian-kohler.path-intellisense &
code --install-extension filwaline.vscode-postfix-python &
code --install-extension cstrap.python-snippets &

# python
code --install-extension KevinRose.vsc-python-indent &
code --install-extension ms-python.vscode-pylance &
code --install-extension ms-python.isort &
code --install-extension charliermarsh.ruff &

# c
code --install-extension llvm-vs-code-extensions.vscode-clangd &

# lua
brew install stylua selene &
code --install-extension Kampfkarren.selene-vscode
code --install-extension sumneko.lua &
code --install-extension JohnnyMorganz.stylua &

# bash
code --install-extension mads-hartmann.bash-ide-vscode &
code --install-extension mkhl.shfmt &
